#!/usr/bin/python
# author Yu
# 2023年06月20日
import os
from multiprocessing import Process

def print_pid():
    print('我是子进程')
    print(f'子进程，pid是{os.getpid()},父进程的pid:{os.getppid()}')
if __name__ == '__main__':
    child=Process(target=print_pid)
    child.start()
    print(os.getpid())
    child.join()